import Test from './test.vue';
import { render, h } from 'vue';

let instance: any = null;

export const createTemplate = (options: any) => {

  if (Object.prototype.toString.call(options) !== '[object Object]') {
    throw new Error('options 的类型必须为一个对象！');
  }

  // 创建容器
  const container = document.createElement('div');

  // 创建虚拟节点

  

  instance = h(Test, options);

  // 渲染真实节点
  render(instance, container);


}